/* eslint-disable max-len */
const EMAIL =
  /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|.(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
const PHONE_NUMBER = /^[+]*[(]?[0-9][)]?[-\s./0-9]{14}$/g;

const PROMO = /[A-Z]+|^$/;

export const regex = {
  email: EMAIL,
  phone: PHONE_NUMBER,
  promo: PROMO,
};
